
/*导航栏*/
nav {
    background-color: #28d4d4;
    padding: 10px 0;
    position: fixed; /* 固定在页面顶部 */
    top: 0;
    left: 0;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* 分成两个部分并居中显示 */
    width: 20%; /* 限制导航栏宽度 */
    margin: 0 auto; /* 居中显示 */
}

.nav-item {
    width: 45%; /* 每个部分占据的宽度 */
    text-align: center;
    border-radius: 5px; /* 圆角 */
    background-color: #8ceabb; /* 浅蓝色 */
}

a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 0;
}

a:hover {
    text-decoration: underline;
}

/*主页*/
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0; /* 重置内外边距 */
    background-color: #f0f4f8;
}
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 80px; /* 添加上边距，避免被导航栏遮挡 */
}
.header h1 {
    color: #32d6f3;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden; /* 清除浮动 */
}
.descriptions {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.descriptions-title {
    background-color: #f5f7fa;
    padding: 10px 20px;
    border-bottom: 1px solid #ebeef5;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #1e88e5; /* Blue color for the title */
}
.descriptions-item {
    display: flex;
    align-items: center; /* 垂直居中 */
    padding: 10px 0;
    border-bottom: 1px solid #ebeef5;
}
.descriptions-item:last-child {
    border-bottom: none;
}
.label {
    flex: 1;
    color: #909399;
}
.content {
    flex: 3;
}
.tag {
    display: inline-block;
    background-color: #409eff;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    .descriptions-item {
        flex-direction: column;
    }
    .label, .content {
        flex: none;
        width: 100%;
    }
}
/* 新增样式 */
.edit-button {
    background-color: #409eff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-bottom: 20px; /* 调整与下方间距 */
}
.edit-button:hover {
    background-color: #3672bb;
}
#edit-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f5f5f5;
    clear: both; /* 清除浮动 */
}
#edit-form .descriptions-item {
    margin-bottom: 10px;
}
#edit-form button {
    background-color: #409eff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
#edit-form button:hover {
    background-color: #3672bb;
}
